import request from '@/utils/request'

// 查询供应商管理列表
export function listTinaSupplier (query) {
  return request({
    url: '/tina/Supplier/list',
    method: 'get',
    params: query
  })
}

// 查询供应商管理详细
export function getTinaSupplier (id) {
  return request({
    url: '/tina/Supplier/' + id,
    method: 'get'
  })
}

// 新增供应商管理
export function addTinaSupplier (data) {
  return request({
    url: '/tina/Supplier',
    method: 'post',
    data: data
  })
}

// 修改供应商管理
export function updateTinaSupplier (data) {
  return request({
    url: '/tina/Supplier',
    method: 'put',
    data: data
  })
}

// 删除供应商管理
export function delTinaSupplier (id) {
  return request({
    url: '/tina/Supplier/' + id,
    method: 'delete'
  })
}

// 导出供应商管理
export function exportTinaSupplier (query) {
  return request({
    url: '/tina/Supplier/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/tina/Supplier/getInitData/' + dictTypes,
    method: 'get'
  })
}
